#--coding:utf-8--
# @Time    : 2022/5/9 20:25
# @Author  : hakold
# @File    : config_model.py
# @PROJECT : chatroom_game
import json

def get_config(data_dict):
    # 客户端获取配置
    data = {}
    item_config = json.load(open("config/item_config.json", encoding='utf-8'))
    level_exp_config = json.load(open("config/level_exp.json", encoding='utf-8'))
    mission_config = json.load(open("config/mission_config.json", encoding='utf-8'))
    print(item_config)
    print(level_exp_config)
    print(mission_config)
    data['data'] = {
        "item_config": item_config,
    }
    code = "200"
    data["type"] = "get_config"
    data["code"] = code
    data = json.dumps(data)
    return data